<template>
  <div class="statiscs">
    <main-title title="类型统计"></main-title>
    <div class="boxContainer">
      <title-middle title="xxxx活动"></title-middle>
      <title-middle title="xxxx任务"></title-middle>
      <title-middle title="xxxx培训"></title-middle>
    </div>
    <div class="bottomContainer">
      <div class="left" v-for="(item, index) in pieData" :key="index">
        <pie-echart :pieData="item"></pie-echart>
      </div>
      <div class="right"></div>
    </div>
  </div>
</template>
<script setup>
import { ref, onMounted } from 'vue'
import PieEchart from './PieEchart.vue'
let pieData = ref([
  [
    { name: 'xxxx', value: 40 },
    { name: 'xxxx', value: 10 },
    { name: 'xxxx', value: 25 },
    { name: 'xxxx', value: 25 }
  ],
  [
    { name: 'xxxx', value: 40 },
    { name: 'xxxx', value: 10 },
    { name: 'xxxx', value: 25 },
    { name: 'xxxx', value: 25 }
  ],
  [
    { name: 'xxxx', value: 40 },
    { name: 'xxxx', value: 10 },
    { name: 'xxxx', value: 25 },
    { name: 'xxxx', value: 25 }
  ]
])
onMounted(() => {})
</script>
<style lang="scss" scoped>
.statiscs {
  margin-top: 18px;
  .boxContainer {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
  }
  .bottomContainer {
    margin: 60px 0 0 0px;
    display: flex;
    justify-content: space-between;
    .left {
      margin-left: 25px;
    }
  }
}
</style>
